Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

debian backports and compiler warnings #29

Open
wants to merge 13 commits into
base: master
Choose a base branch
from

Conversation

kerolasa
Copy link

@kerolasa kerolasa commented Apr 2, 2015

The three first changes are from Debian sl package, so assuming this pull request is merged the upstream then Debian no longer need to maintain downstream patches.

yamamoto and others added 13 commits April 2, 2015 12:31
These changes are backported from Debian sl distribution package.

Reference: https://packages.debian.org/sid/sl
Signed-off-by: Sami Kerola <[email protected]>
These changes are backported from Debian sl distribution package.

Reference: https://packages.debian.org/sid/sl
Signed-off-by: Sami Kerola <[email protected]>
These changes are backported from Debian sl distribution package.

Reference: https://packages.debian.org/sid/sl
Signed-off-by: Sami Kerola <[email protected]>
sl-h.c:168:15: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
sl-h.c:525:25: warning: unused parameter 'c' [-Wunused-parameter]
sl-h.c:564:15: warning: variable 'dy' set but not used [-Wunused-but-set-variable]

Signed-off-by: Sami Kerola <[email protected]>
In same go remove strlen() call that is unnecessary, sprintf() return
value tells how many characters was printed.

Signed-off-by: Sami Kerola <[email protected]>
These probably were added to make compiler warnings silent, but that is
no longer needed.

Signed-off-by: Sami Kerola <[email protected]>
Writing functions in right order is good enough.

Signed-off-by: Sami Kerola <[email protected]>
sl-h.c:115:13: warning: 'end_proc' defined but not used [-Wunused-function]

Signed-off-by: Sami Kerola <[email protected]>
And remove unnecessary ones.

Signed-off-by: Sami Kerola <[email protected]>
All four variables caused same warning.

sl.c:60:5: warning: nested extern declaration of 'ACCIDENT' [-Wnested-externs]

Signed-off-by: Sami Kerola <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants